package com.dlws.modules.field.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dlws.modules.field.entity.ProductFieldValue;
import com.dlws.modules.field.mapper.ProductFieldValueMapper;


/**
 * 
 * 描述：
 * 创建人： 魏泽超
 * 创建时间: 2016-6-7 上午11:06:46
 * @version
 */
@Service
public class ProductFieldValueServiceImpl implements ProductFieldValueService{
	
	@Autowired
	private ProductFieldValueMapper fieldValueMapper;

	@Override
	public ProductFieldValue queryOne(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.selectOne(record);
	}

	@Override
	public List<ProductFieldValue> queryAll(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.select(record);
	}

	@Override
	public int queryCount(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.selectCount(record);
	}

	@Override
	public ProductFieldValue queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return fieldValueMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.insert(record);
	}

	@Override
	public int addSelective(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.insertSelective(record);
	}

	@Override
	public int delete(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return fieldValueMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductFieldValue record) {
		// TODO Auto-generated method stub
		return fieldValueMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(ProductFieldValue example) {
		// TODO Auto-generated method stub
		return fieldValueMapper.selectCountByExample(example);
	}

	@Override
	public List<ProductFieldValue> queryByExample(ProductFieldValue example) {
		// TODO Auto-generated method stub
		return fieldValueMapper.selectByExample(example);
	}

}
